import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../views/Home.vue')
  },
  {
    path: '/MapContainer',
    name: 'MapContainer',
    component: () => import('../views/MapContainer.vue')
  },
  {
    path: '/scan',
    name: 'Scan',
    component: () => import('../views/Scan.vue')
  },
  {
    path: '/my',
    name: 'My',
    component: () => import('../views/My.vue')
  },
  {
    path: '/chargeStation',
    name: 'ChargeStation',
    component: () => import('../components/ChargeStation/ChargeStation.vue'),
    meta:{
      noshow:true,
    },
  },
  {
    path: '/chargeing',
    name: 'Chargeing',
    component: () => import('../components/Chargeing/Chargeing.vue'),
    meta:{
      noshow:true,
    },
  },
  {
    path: '/order',
    name: 'Order',
    component: () => import('../views/Order.vue'),
    meta:{
      noshow:true,
    },
  },
  {
    path: '/love',
    name: 'Love',
    component: () => import('../views/Love.vue'),
    meta:{
      noshow:true,
    },
  }
]

const router = new VueRouter({
  routes
})

export default router
